import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '类别名称',
            dataIndex: 'categoryName',
            width: 200,
        },
        {
            title: '分类码',
            dataIndex: 'categoryCode',
            width: 200,
        },
        {
            title: '类别图标',
            dataIndex: 'categoryIcon',
            width: 200,
        },
        {
            title: '跳转地址',
            dataIndex: 'categoryUrl',
            width: 200,
        },
        {
            title: '新版类别图标',
            dataIndex: 'newCategoryIcon',
            width: 200,
        },
        {
            title: '新版跳转地址',
            dataIndex: 'newCategoryUrl',
            width: 200,
        },
        {
            title: '代理商跳转地址',
            dataIndex: 'agentUrl',
            width: 200,
        },
        {
            title: '是否展示',
            dataIndex: 'isShow',
            width: 200,
        },
        {
            title: '公司是否售卖',
            dataIndex: 'companySell',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'sort',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'allowDelete',
            width: 200,
        },
        {
            title: '创建日期',
            dataIndex: 'createDate',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '类别名称',
            field: 'categoryName',
            component: 'Input',
            required: true,
        },
        {
            label: '分类码',
            field: 'categoryCode',
            component: 'Input',
            required: true,
        },
        {
            label: '类别图标',
            field: 'categoryIcon',
            component: 'Input',
            required: true,
        },
        {
            label: '跳转地址',
            field: 'categoryUrl',
            component: 'Input',
            required: true,
        },
        {
            label: '新版类别图标',
            field: 'newCategoryIcon',
            component: 'Input',
            required: true,
        },
        {
            label: '新版跳转地址',
            field: 'newCategoryUrl',
            component: 'Input',
            required: true,
        },
        {
            label: '代理商跳转地址',
            field: 'agentUrl',
            component: 'Input',
            required: true,
        },
        {
            label: '是否展示',
            field: 'isShow',
            component: 'Input',
            required: true,
        },
        {
            label: '公司是否售卖',
            field: 'companySell',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'sort',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'allowDelete',
            component: 'Input',
            required: true,
        },
        {
            label: '创建日期',
            field: 'createDate',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
